Branchwell

PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Hypnotic / Illusion / amandio c, flexi - Op illusions - random1.milk

1MILKDROP_PRESET_VERSION=201
2PSVERSION=3
3PSVERSION_WARP=3
4PSVERSION_COMP=3
5[preset00]
6fRating=5.000000
7fGammaAdj=1.280
8fDecay=0.800
9fVideoEchoZoom=1.000
10fVideoEchoAlpha=0.000
11nVideoEchoOrientation=3
12nWaveMode=7
13bAdditiveWaves=1
14bWaveDots=0
15bWaveThick=0
16bModWaveAlphaByVolume=1
17bMaximizeWaveColor=0
18bTexWrap=1
19bDarkenCenter=0
20bRedBlueStereo=0
21bBrighten=1
22bDarken=0
23bSolarize=0
24bInvert=0
25fWaveAlpha=0.001
26fWaveScale=1.286
27fWaveSmoothing=0.630
28fWaveParam=0.000
29fModWaveAlphaStart=0.710
30fModWaveAlphaEnd=1.300
31fWarpAnimSpeed=1.000
32fWarpScale=1.000
33fZoomExponent=3.04777
34fShader=0.000
35zoom=1.01730
36rot=0.00000
37cx=0.500
38cy=0.500
39dx=0.00000
40dy=0.00000
41warp=0.01605
42sx=1.00000
43sy=1.00000
44wave_r=1.000
45wave_g=0.650
46wave_b=0.650
47wave_x=0.500
48wave_y=0.500
49ob_size=0.000
50ob_r=0.000
51ob_g=0.000
52ob_b=0.000
53ob_a=1.000
54ib_size=0.010
55ib_r=0.250
56ib_g=0.250
57ib_b=0.250
58ib_a=0.000
59nMotionVectorsX=64.000
60nMotionVectorsY=48.000
61mv_dx=0.000
62mv_dy=0.000
63mv_l=0.000
64mv_r=1.000
65mv_g=1.000
66mv_b=1.000
67mv_a=0.000
68b1n=0.000
69b2n=0.000
70b3n=0.000
71b1x=1.000
72b2x=1.000
73b3x=1.000
74b1ed=0.000
75wavecode_0_enabled=0
76wavecode_0_samples=512
77wavecode_0_sep=0
78wavecode_0_bSpectrum=0
79wavecode_0_bUseDots=0
80wavecode_0_bDrawThick=1
81wavecode_0_bAdditive=1
82wavecode_0_scaling=1.00000
83wavecode_0_smoothing=0.50000
84wavecode_0_r=1.000
85wavecode_0_g=0.000
86wavecode_0_b=0.000
87wavecode_0_a=1.000
88wavecode_1_enabled=0
89wavecode_1_samples=512
90wavecode_1_sep=0
91wavecode_1_bSpectrum=0
92wavecode_1_bUseDots=0
93wavecode_1_bDrawThick=1
94wavecode_1_bAdditive=1
95wavecode_1_scaling=1.00000
96wavecode_1_smoothing=0.50000
97wavecode_1_r=0.000
98wavecode_1_g=0.000
99wavecode_1_b=1.000
100wavecode_1_a=1.000
101wavecode_2_enabled=0
102wavecode_2_samples=512
103wavecode_2_sep=0
104wavecode_2_bSpectrum=0
105wavecode_2_bUseDots=0
106wavecode_2_bDrawThick=1
107wavecode_2_bAdditive=1
108wavecode_2_scaling=1.00000
109wavecode_2_smoothing=0.50000
110wavecode_2_r=0.000
111wavecode_2_g=1.000
112wavecode_2_b=0.000
113wavecode_2_a=1.000
114wavecode_3_enabled=0
115wavecode_3_samples=512
116wavecode_3_sep=0
117wavecode_3_bSpectrum=0
118wavecode_3_bUseDots=0
119wavecode_3_bDrawThick=1
120wavecode_3_bAdditive=1
121wavecode_3_scaling=1.00000
122wavecode_3_smoothing=0.50000
123wavecode_3_r=1.000
124wavecode_3_g=0.000
125wavecode_3_b=1.000
126wavecode_3_a=1.000
127shapecode_0_enabled=0
128shapecode_0_sides=5
129shapecode_0_additive=1
130shapecode_0_thickOutline=0
131shapecode_0_textured=0
132shapecode_0_num_inst=2
133shapecode_0_x=0.490
134shapecode_0_y=0.500
135shapecode_0_rad=0.11589
136shapecode_0_ang=0.00000
137shapecode_0_tex_ang=0.00000
138shapecode_0_tex_zoom=4.36077
139shapecode_0_r=1.000
140shapecode_0_g=0.000
141shapecode_0_b=0.000
142shapecode_0_a=1.000
143shapecode_0_r2=0.000
144shapecode_0_g2=0.000
145shapecode_0_b2=0.000
146shapecode_0_a2=0.000
147shapecode_0_border_r=1.000
148shapecode_0_border_g=1.000
149shapecode_0_border_b=1.000
150shapecode_0_border_a=0.000
151shapecode_1_enabled=0
152shapecode_1_sides=4
153shapecode_1_additive=0
154shapecode_1_thickOutline=0
155shapecode_1_textured=0
156shapecode_1_num_inst=1
157shapecode_1_x=0.500
158shapecode_1_y=0.500
159shapecode_1_rad=0.10000
160shapecode_1_ang=0.00000
161shapecode_1_tex_ang=0.00000
162shapecode_1_tex_zoom=1.00000
163shapecode_1_r=1.000
164shapecode_1_g=0.000
165shapecode_1_b=0.000
166shapecode_1_a=1.000
167shapecode_1_r2=0.000
168shapecode_1_g2=1.000
169shapecode_1_b2=0.000
170shapecode_1_a2=0.000
171shapecode_1_border_r=1.000
172shapecode_1_border_g=1.000
173shapecode_1_border_b=1.000
174shapecode_1_border_a=0.100
175shapecode_2_enabled=0
176shapecode_2_sides=4
177shapecode_2_additive=0
178shapecode_2_thickOutline=0
179shapecode_2_textured=0
180shapecode_2_num_inst=1
181shapecode_2_x=0.500
182shapecode_2_y=0.500
183shapecode_2_rad=0.10000
184shapecode_2_ang=0.00000
185shapecode_2_tex_ang=0.00000
186shapecode_2_tex_zoom=1.00000
187shapecode_2_r=1.000
188shapecode_2_g=0.000
189shapecode_2_b=0.000
190shapecode_2_a=1.000
191shapecode_2_r2=0.000
192shapecode_2_g2=1.000
193shapecode_2_b2=0.000
194shapecode_2_a2=0.000
195shapecode_2_border_r=1.000
196shapecode_2_border_g=1.000
197shapecode_2_border_b=1.000
198shapecode_2_border_a=0.100
199shapecode_3_enabled=0
200shapecode_3_sides=4
201shapecode_3_additive=0
202shapecode_3_thickOutline=0
203shapecode_3_textured=0
204shapecode_3_num_inst=1
205shapecode_3_x=0.500
206shapecode_3_y=0.500
207shapecode_3_rad=0.10000
208shapecode_3_ang=0.00000
209shapecode_3_tex_ang=0.00000
210shapecode_3_tex_zoom=1.00000
211shapecode_3_r=1.000
212shapecode_3_g=0.000
213shapecode_3_b=0.000
214shapecode_3_a=1.000
215shapecode_3_r2=0.000
216shapecode_3_g2=1.000
217shapecode_3_b2=0.000
218shapecode_3_a2=0.000
219shapecode_3_border_r=1.000
220shapecode_3_border_g=1.000
221shapecode_3_border_b=1.000
222shapecode_3_border_a=0.100
223warp_1=`///Box of tricks by Flexi
224warp_2=`
225warp_3=`
226warp_4=`sampler sampler_rand01_OI;
227warp_5=`
228warp_6=`float figure_borders(float2 domain, float thickness){
229warp_7=` float2 help_uv = frac(domain-0.5);
230warp_8=` help_uv = min(help_uv,1-help_uv)*2;
231warp_9=` return saturate(max(help_uv.x,help_uv.y)-1+thickness)/(thickness);
232warp_10=`}
233warp_11=`
234warp_12=`bool hex(float2 domain){
235warp_13=` float2 help_uv = frac(domain)*float2(8,12);
236warp_14=` float x,y; x = help_uv.x; y = help_uv.y;
237warp_15=` return (x>1)*(x<7)*(y>4)*(y<8)*(x+y>7)*(x+y<13)*(x-y<1)*(y-x<5);
238warp_16=`}
239warp_17=`
240warp_18=`bool3 hexgrid(float2 domain){
241warp_19=` bool tile1, tile2;
242warp_20=` tile1 = hex(domain) + hex(domain + 0.5);
243warp_21=` tile2 = hex(domain + float2(0.5,1/6.0) )
244warp_22=` + hex(domain + float2(0,4/6.0) );
245warp_23=` return bool3(tile1, tile2, 1 - tile1 - tile2);
246warp_24=`}
247warp_25=`
248warp_26=`
249warp_27=`float2 complex_div(float2 numerator, float2 denominator){
250warp_28=` return float2( numerator.x*denominator.x + numerator.y*denominator.y,
251warp_29=` numerator.y*denominator.x - numerator.x*denominator.y)/
252warp_30=` (denominator.x*denominator.x + denominator.y*denominator.y);
253warp_31=`}
254warp_32=`
255warp_33=`float2 uv_moebius_transformation(float2 domain, float2 zeroPoint, float2 infinityPoint,float zoom){
256warp_34=` return complex_div((domain - zeroPoint)*zoom, domain - infinityPoint)+0.5;
257warp_35=`}
258warp_36=`
259warp_37=`float2 uv_polar(float2 domain, float2 center){
260warp_38=` float2 c = domain - center;
261warp_39=` float rad_hq = length(c);
262warp_40=` float ang_hq = atan2(c.x,c.y);
263warp_41=` return float2(ang_hq, rad_hq);
264warp_42=`}
265warp_43=`
266warp_44=`float2 uv_polar_logarithmic_inverse(float2 domain, float2 center, int fins, float log_factor, float2 coord){
267warp_45=` float2 polar = uv_polar(domain, center)*float2(M_INV_PI_2,1);
268warp_46=` return float2(polar.x*fins+coord.x, log_factor*log(1/polar.y) + coord.y);
269warp_47=`}
270warp_48=`
271warp_49=`float2 uv_bipolar_logarithmic_inverse(float2 domain, float2 northPole, float2 southPole, int fins, float log_factor, float2 coord){
272warp_50=` float2 help_uv = uv_moebius_transformation(domain, northPole, southPole, 1);
273warp_51=` return uv_polar_logarithmic_inverse(help_uv,0.5,fins,log_factor,coord);
274warp_52=`}
275warp_53=`
276warp_54=`float2 uv_lens_half_sphere(float2 domain, float2 position, float radius, float refractivity){
277warp_55=` float2 polar = uv_polar(domain, position);
278warp_56=` float cone = saturate(1-polar.y/radius);
279warp_57=` float halfsphere = sqrt(1-pow(cone-1,2));
280warp_58=` float w = atan2(1-cone,halfsphere);
281warp_59=` float refrac_w = w-asin(sin(w)/refractivity);
282warp_60=` float refrac_d = 1-cone - halfsphere*tan(refrac_w);
283warp_61=` float2 refrac_uv =position+float2(sin(polar.x),cos(polar.x))*refrac_d*radius;
284warp_62=` bool mask =(length(domain-position)<radius);
285warp_63=` return !mask*domain +
286warp_64=` mask*refrac_uv;
287warp_65=`}
288warp_66=`
289warp_67=`shader_body
290warp_68=`{
291warp_69=`float2 help_uv = uv_lens_half_sphere(uv_orig, float2(0.5,0.5),0.2,2.2);
292warp_70=`help_uv = uv_bipolar_logarithmic_inverse(help_uv, float2(0.3,0.4), float2(0.7,0.4), 3, 0.5, float2(-time*0.1,-time*0.04));
293warp_71=`help_uv = help_uv*float2(3,3);
294warp_72=`float2 grid_uv = help_uv*float2(8,12);
295warp_73=`
296warp_74=`
297warp_75=`
298warp_76=`ret = tex2D(sampler_rand01_OI,help_uv);
299warp_77=`
300warp_78=`}
301comp_1=`shader_body
302comp_2=`{
303comp_3=`ret = GetPixel(uv);
304comp_4=`}